//
//  LXExtension+UITextField.swift
//  LXExtensions
//
//  Created by yoctech on 2021/9/16.
//

import Foundation
import UIKit

@objc public extension UITextField {
    @objc convenience init(text:String? = nil, color:UIColor?, font: UIFont) {
        self.init()
        self.text = text
        self.setText(color: color, font: font)
    }
    
    @objc func setText(color: UIColor?, font: UIFont) {
        self.textColor = color
        self.font = font
    }
}
